package com.tt.fashionWebSite.domain;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by isoft-work 5 on 11/19/14.
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "size_ao_tv")
@NamedQueries({
      @NamedQuery(name = "SizeAoTuVan.getInfoByUser", query = "SELECT s FROM SizeAoTuVan s WHERE s.thongTinThanhVien.maTV = :maTV AND s.gioiTinhTuVan = :gender AND s.loaiTrangPhuc = :type") ,
})
public class SizeAoTuVan implements Serializable {
   public static final String GET_INFO_BY_USER = "SizeAoTuVan.getInfoByUser";

   @Id
   @GeneratedValue(strategy = GenerationType.IDENTITY)
   @Column(name = "MA_SIZE_AO")
   private Long maSizeAo;

   @ManyToOne
   @JoinColumn(name = "MA_TV")
   private ThongTinThanhVien thongTinThanhVien;

   @Column(name = "SIZE_AO")
   private String sizeAo;

   @Column(name = "LOAI_TRANG_PHUC")
   private Long loaiTrangPhuc;

   @Column(name = "GIOI_TINH_TV")
   private String gioiTinhTuVan;

   public Long getMaSizeAo() {
      return maSizeAo;
   }

   public void setMaSizeAo(Long maSizeAo) {
      this.maSizeAo = maSizeAo;
   }

   public ThongTinThanhVien getThongTinThanhVien() {
      return thongTinThanhVien;
   }

   public void setThongTinThanhVien(ThongTinThanhVien thongTinThanhVien) {
      this.thongTinThanhVien = thongTinThanhVien;
   }

   public String getSizeAo() {
      return sizeAo;
   }

   public void setSizeAo(String sizeAo) {
      this.sizeAo = sizeAo;
   }

   public Long getLoaiTrangPhuc() {
      return loaiTrangPhuc;
   }

   public void setLoaiTrangPhuc(Long loaiTrangPhuc) {
      this.loaiTrangPhuc = loaiTrangPhuc;
   }

   public String getGioiTinhTuVan() {
      return gioiTinhTuVan;
   }

   public void setGioiTinhTuVan(String gioiTinhTuVan) {
      this.gioiTinhTuVan = gioiTinhTuVan;
   }
}
